<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="/houtai/css/bootstrap-combined.min.css">
	</head>
<body>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span1"></div>
			<div class="span6">
				<!-- <h3 class="text-center text-info">上传安卓版本</h3> -->
				<blockquote><h3 class=" text-info">更新<?php echo $os=='ios' ? '苹果':'安卓' ?>版本</h3></blockquote>
				<form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
					<div class="control-group">
						<label class="control-label" >版本号:</label>
						<div class="controls">
							<input name="version" type="text" placeholder=""/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" >内部版本号:</label>
						<div class="controls">
							<input type="text" name="internal_version" placeholder=""/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" >更新信息:</label>
						<div class="controls">
							<textarea type="text" name="info" placeholder=""></textarea>
						</div>
					</div>
					<?php if ($os=='ios'): ?>
						<div class="control-group">
							<label class="control-label" >下载链接:</label>
							<div class="controls">
								<input type="text" name="link" value="<?php echo empty($info['app_url']) ? $info['app_url'] : '' ?>"/>
							</div>
						</div>
					<?php else: ?>
						<div class="control-group">
							<label class="control-label" >APK文件:</label>
							<div class="controls">
								<input type="file" name="app" />
							</div>
						</div>
					<?php endif; ?>
					<div class="control-group">
						<div class="controls">
							<button type="submit" class="btn">提交</button>
						</div>
					</div>
				</form>
			</div>
			<div class="span1"></div>
			<div class="span4">
				<?php if (!empty($info)): ?>
					<dl>
				<blockquote>
						<h3 class="text-info">当前版本信息:</h3>
			</blockquote>
						<dt>版本号:</dt>
						<dd><?php echo $info['version']; ?></dd>
						<dt>内部版本号:</dt>
						<dd><?php echo $info['internal_version']; ?></dd>
						<dt>信息:</dt>
						<dd><?php echo $info['info']; ?></dd>
						<dt>下载链接:</dt>
						<dd><?php echo $info['app_url']; ?></dd>
					</dl>
				<?php endif; ?>
			</div>
			<!-- <div class="span2"></div> -->
		</div>

	</div>
</body>
</html>
